package com.hoyue.service;

import com.hoyue.bean.Video;
import com.hoyue.dao.VideoDao;
import com.hoyue.dao.impl.VideoDaoImpl;

import java.sql.SQLException;
import java.util.List;

/**
 * @author Hoyue_network1
 * @version 1.0
 * Creat by 2018/8/24 09:40
 */
public class VideoService {
    VideoDao videoDao = new VideoDaoImpl();

    public void updateIntro(Video video) {
        try {
            videoDao.updateVideo(video);
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }

    public Video getVideo() {
        try {
            return videoDao.getVideo();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }
}
